package system

import (
	"github.com/gin-gonic/gin"
	v1 "jgyApi/server/api/v1"
)

type SnRouter struct {}

func (s *SnRouter) InitSnRouter(Router *gin.RouterGroup) {
	snRouter := Router.Group("Sn")
	macRouter := Router.Group("Mac")
	andRouter := Router.Group("And")
	snApi := v1.ApiGroupApp.SystemApiGroup.SnApi
	appApi := v1.ApiGroupApp.SystemApiGroup.AppApi
	{
		snRouter.GET("/getSnTag", snApi.GetSnTag)
		snRouter.POST("/getStudent", snApi.GetStudent)
		snRouter.GET("/getSnTimeControl", snApi.GetSnTimeControl)
		snRouter.GET("/getSnAppControl", snApi.GetSnAppControl)
		snRouter.GET("/getSnScreen", snApi.GetSnScreen)
		snRouter.GET("/getSnAppTest", snApi.GetSnAppTest)
		snRouter.GET("/getUserInfo", snApi.GetUserInfo)
		snRouter.POST("/deleteAliases", snApi.DeleteAliases)
		snRouter.POST("getWhiteMsgApp", snApi.GetWhiteMsgApp)
		snRouter.GET("GetAllMac", snApi.GetAllMac)
		snRouter.POST("setGanKaoInfo", snApi.SetGanKaoInfo)
		snRouter.GET("getGanKaoInfo", snApi.GetGanKaoInfo)
		snRouter.POST("reportSnTime", snApi.NewReportTime)
		snRouter.GET("getUserActive", snApi.SetUserActive)
		snRouter.GET("activeGanKanProcess", snApi.ActiveGanKanProcess)
		snRouter.GET("testMqttPulish", snApi.TestMqttPulish)
		snRouter.GET("TestSubscribe", snApi.TestSubscribe)
		snRouter.POST("GetSnRead", snApi.GetSnRead)
		snRouter.GET("GetLoginType", snApi.GetLoginType)
		snRouter.GET("GetSnClassAndTag", snApi.GetSnClassAndTag)
		snRouter.GET("LoginGanKao", snApi.LoginGanKao)
		snRouter.GET("GetEyesConfig", snApi.GetEyesConfig)
		snRouter.GET("clearBeforeRestore", snApi.ClearBeforeRestore)

	}
	{
		macRouter.POST("/getMac", snApi.GetMac)
	}
	{
		andRouter.GET("/SnControl/getAppCoordinate", snApi.GetAppCoordinate)
		andRouter.GET("/SnControl/getWifi", snApi.GetWifi)
		andRouter.GET("/AppControl/runAppRestrictList", appApi.RunAppRestrictList)
		andRouter.GET("/getEbagCode", appApi.GetEbagCode)
		andRouter.GET("/getFirmwareApp", appApi.GetFirmwareApp)
	}
	return
}


